﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace WorldmeServer.Models.游戏相关
{
    public class Player
    {
        /// <summary>
        /// 角色唯一Id
        /// </summary>
        [Key]
        [Comment("角色唯一Id")]
        public string Id { get; set; }
        /// <summary>
        /// 角色名称
        /// </summary>
        [Comment("角色名称")]
        public string Name { get; set; }
        /// <summary>
        /// 所属用户
        /// </summary>
        [Comment("所属用户")]
        public string UserId { get; set; }
        /// <summary>
        /// 角色使用皮肤Id
        /// </summary>
        [Comment("角色使用皮肤Id")]
        public string? SkinId { get; set; } = "000001";
        /// <summary>
        /// 角色使用披风Id
        /// </summary>
        [Comment("角色使用披风Id")]
        public string? CopeId { get; set; }
        /// <summary>
        /// 是否为主角色
        /// </summary>
        [Comment("是否为主角色")]
        public bool IsActive { get; set; } = false;
        /// <summary>
        /// 是否正版
        /// </summary>
        [Comment("是否正版")]
        public bool IsGenuine { get; set; } = false;
        /// <summary>
        /// 是否为Alex材质
        /// </summary>
        [Comment("是否为Alex材质")]
        public bool IsSlim { get; set; } = false;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Comment("创建时间")]
        public DateTime CreateTime { get; set; } = DateTime.Now;
    }
}
